package com.oig.base.api.fallback;

import com.oig.base.api.CustomsService;
import com.oig.sys.base.dto.CustomsDto;
import com.oig.sys.base.vo.CustomsVo;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

import java.util.List;

@Slf4j
public class CustomsServiceFallBackImpl implements CustomsService {

    @Setter
    private Throwable cause;


    @Override
    public CustomsVo getByName(String name) {
        log.error("feign getByName error ", cause);
        return null;
    }

    @Override
    public CustomsVo getByOldCode(String oldCode) {
        log.error("feign getByOldCode error ", cause);
        return null;
    }

    @Override
    public CustomsVo updateCustoms(CustomsDto customsDto) {
        log.error("feign updateCustoms error ", cause);
        return null;
    }

    @Override
    public CustomsVo getByCode(String code) {
        log.error("feign getByCode error ", cause);
        return null;
    }

    @Override
    public List<CustomsVo> getByPortCode(String portCode) {
        log.error("feign getByPortCode error ", cause);
        return null;
    }

}
